<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@page import="domain.CarList,java.util.HashMap,java.util.Set"%>
    
    <%CarList carlist = (CarList)session.getAttribute("carlist");%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<Table border=1><TR><TD>Car Make</TD><td>Type</td><td>Year</td></TR>
<%HashMap<String, String> basicinfo = carlist.getBasicList();
Set<String> keys = basicinfo.keySet();

for (String key : keys) {
String[] basiccontents = basicinfo.get(key).split(" ");
String carmake = basiccontents[0];
String type = basiccontents[1];
String year = basiccontents[2];%>
	 <a href=CarDetailsPage.jsp?itemid=<%=key%>>
	   <!--"javascript:window.open('', 'windowname1', 'width=400, height=200');"-->
	   <tr><TD><%=carmake %></TD><td><%=type %></TD><TD><%=year %></TD></tr></a>
	
<% }%>

</Table>

</body>



</html>

